package br.com.empresa.controller;

import java.io.IOException;

import br.com.empresa.app.Principal;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.stage.Stage;

public class PrincipalController {

	 @FXML
	    private Button btAluno;

	    @FXML
	    private Button btPesquisar;

	    @FXML
	    private TextField txProcurar;

	    @FXML
	    private Button btProfessor;

	    @FXML
	    void eventCadastroAluno(ActionEvent event) {	
	    	try{
	    	Parent root = FXMLLoader.load(getClass().getResource("/br/com/empresa/view/Aluno.fxml"));	  
	    	Principal.SCENE.setRoot(root);
	    	}catch(IOException ex){
	    		ex.printStackTrace();
	    		
	    	}	
	    }

	    

	    @FXML
	    void eventPesquisar(ActionEvent event) {

	    }

	    @FXML
	    void eventCadastroProf(ActionEvent event) {

	    }

}
